package com.xyxeshang.es.music.backend.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.util.Date;

/**
 * @author xyx-Eshang
 */
@JsonIgnoreProperties("handler")
public class Listen {
	private Integer listenId;
	private Date listenTime;
	private Integer listenCount;
	private String userOpenId;
	private String songId;

	private Song song;

	@Override
	public String toString() {
		return "Listen{" +
				"listenId=" + listenId +
				", listenTime=" + listenTime +
				", listenCount=" + listenCount +
				", userOpenId='" + userOpenId + '\'' +
				", songId='" + songId + '\'' +
				", song=" + song +
				'}';
	}

	public Integer getListenId() {
		return listenId;
	}

	public Listen setListenId(Integer listenId) {
		this.listenId = listenId;
		return this;
	}

	public Date getListenTime() {
		return listenTime;
	}

	public Listen setListenTime(Date listenTime) {
		this.listenTime = listenTime;
		return this;
	}

	public Integer getListenCount() {
		return listenCount;
	}

	public Listen setListenCount(Integer listenCount) {
		this.listenCount = listenCount;
		return this;
	}

	public String getUserOpenId() {
		return userOpenId;
	}

	public Listen setUserOpenId(String userOpenId) {
		this.userOpenId = userOpenId;
		return this;
	}

	public String getSongId() {
		return songId;
	}

	public Listen setSongId(String songId) {
		this.songId = songId;
		return this;
	}

	public Song getSong() {
		return song;
	}

	public Listen setSong(Song song) {
		this.song = song;
		return this;
	}
}
